package com.xbongbong.paas.domain.entity.ext;

import java.io.Serializable;

/**
 * @author: wufeng
 * @date: 2018/8/14 13:53
 * @desrcption: 字段权限
 */
public class FieldPermissionEntityExt implements Serializable {

    private static final long serialVersionUID = 9012840462792121197L;

    /**
     * 字段
     */
    private String attr;

    /**
     * 子表单内部字段
     */
    private String subAttr;

    /**
     * 字段类型
     */
    private Integer fieldType;

    /**
     * 是否可编辑 1：允许 0：不允许
     */
    private Integer editable;

    /**
     * 是否允许可见 1：允许 0：不允许
     */
    private Integer visible;

    /**
     * 是否开启简报 1 ：是 0 ：不是
     */
    private Integer summary;

    public FieldPermissionEntityExt () {}

    public FieldPermissionEntityExt(String attr, Integer fieldType, Integer editable, Integer visible, Integer summary) {
        this.attr = attr;
        this.fieldType = fieldType;
        this.editable = editable;
        this.visible = visible;
        this.summary = summary;
    }

    public FieldPermissionEntityExt(String attr, String subAttr, Integer fieldType, Integer editable, Integer visible, Integer summary) {
        this.attr = attr;
        this.subAttr = subAttr;
        this.fieldType = fieldType;
        this.editable = editable;
        this.visible = visible;
        this.summary = summary;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr;
    }

    public String getSubAttr() {
        return subAttr;
    }

    public void setSubAttr(String subAttr) {
        this.subAttr = subAttr;
    }

    public Integer getFieldType() {
        return fieldType;
    }

    public void setFieldType(Integer fieldType) {
        this.fieldType = fieldType;
    }

    public Integer getEditable() {
        return editable;
    }

    public void setEditable(Integer editable) {
        this.editable = editable;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }

    public Integer getSummary() {
        return summary;
    }

    public void setSummary(Integer summary) {
        this.summary = summary;
    }
}
